
// 查看队伍成员信息 {"序列":4}
// @ts-ignore
export async function execute(client_id,message_json) {
	let index = message_json["序列"];
	if (index === undefined || index - 1 < 0 && index - 1 > 4) {
		ClientUtils.send_basic_prompt(client_id, "请正确选择队员");
		return;
	}
	index = index - 1;

	let login_characters = G.Characters.get_current_login_characters(client_id);

	let team_data = G.TeamUtils.get_team_data(login_characters["队伍"]);
	if (team_data === undefined) {
		ClientUtils.send_basic_prompt(client_id, "队伍不存在");
		return;
	}
	let characters_id = team_data["成员"][index];
	let characters = _CharactersData.get(characters_id);
	if (characters === undefined) {
		ClientUtils.send_basic_prompt(client_id, "#Y这个角色不存在或当前不在线");
	} else {
		ClientUtils.send_client_message(client_id, 4015, G.TeamUtils.build_team_characters_data(characters));
	}
}

